package com.example.mapper;

import com.example.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrdersMapper {
    int insert(Orders orders);
    
    List<Orders> selectAll(Orders orders);

    void updateById(Orders orders);

    void deleteById(Integer id);

    @Select("select * from `orders` where id = #{id}")
    Orders selectById(Integer id);


}
